package Backup;

import java.util.Random;
import java.util.Vector;

public class BK_RandomCard {

    public static void main(String[] args) {
        Random rd = new Random();

//        //random 10 number bettween 100
//        System.out.println("random 10 number bettween 100");
//        for (int i = 0; i < 10; i++) {
//            System.out.println("Item " + (i+1) + ":" + rd.nextInt(100));
//        }
//        
//        //random new item difference from previous random item
//        int iNewNumber = 0, iPrevious = -1;
//        for (int i = 0; i < 10; ) {
//            iNewNumber = rd.nextInt(100);
//            if (iNewNumber != iPrevious){
//                i++;
//                iPrevious = iNewNumber;
//                System.out.println("Item " + (i+1) + ":" + iNewNumber);
//            }
//        }

        //random 10 unique number
        Vector v = new Vector();
        int iNew = 0;
        for (int i = 0; i < 52;) {
            iNew = rd.nextInt(53);
            if (!v.contains(iNew)) {
                i++;
                v.add(iNew);
                System.out.println("Item " + i + ":" + iNew);
            }
        }
    }
}
